<!DOCTYPE HTML>
<html>
<head>
    {include file="common_header"}
    <title>商品详情</title>
    <style>
        th{
            font-family: "楷体";
            font-size: 16px;
            height: 60px;
            background: #F2F2F2;
        }
        td{
            font-family: "宋体";
            font-size: 16px;
        }
    </style>
</head>
<body>
<article class="page-container">
    <table class="table   table-hover " border="1" cellspacing="" cellpadding="">
        <tr class="text-c">
            <th style="font-weight:bold">所属商户</th>
            <td colspan="3">{$info.shop_name}</td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold">商品封面图</th>
            <td colspan="3">
                <div>
                    <img src="__UPLOADS__{$info.goods_image}" style="width: 100px;">
                </div>
            </td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold">商品详情图</th>
            <td colspan="3">
                <div id="layer-photos-demo">
                    {volist name="info['good_urlimg']" id="v"}
                          <img src="{$v}" style="width:100px">
                    {/volist}
                </div>
            </td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold;">商品名称</th>
            <td>{$info.goods_name}</td>
            <th style="font-weight:bold">商品类别</th>
            <td>{$info.classify_name}</td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold;">商品价格</th>
            <td>{$info.goods_price}</td>
            <th style="font-weight:bold;">商品单位</th>
            <td>{$info.goods_unit}</td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold;">商品库存</th>
            <td>{$info.goods_num}</td>
            <th style="font-weight:bold;">商品销量</th>
            <td>{$info.sale_num}</td>
        </tr>
        <tr class="text-c">
            <th style="font-weight:bold;">商品添加时间</th>
            <td>{$info.goods_addtime}</td>
            <th style="font-weight:bold">商品状态</th>
            <td>
                {if condition="$info['goods_status'] eq 1"}
                    <span style="color:green">上架</span>
                {else/}
                    <span style="color: red">已下架</span>
                {/if}

            </td>
        </tr>
        <tr class="text-c">
        <th style="font-weight:bold">商品描述</th>
        <td colspan="3">{$info.goods_content}</td>
        </tr>
    </table>
</article>
<!--<div style="text-align: center"><button class="btn btn-primary radius" type="submit"> 审核 </button></div>-->

<!--_footer 作为公共模版分离出去-->
{include file="common_footer"}
<script src="//at.alicdn.com/t/font_5bny1n3vp6lp7gb9.js"></script>
<script src="//at.alicdn.com/t/font_vkfhzkw9f7a7zaor.js"></script>
<script>
        layer.photos({
            photos: '#layer-photos-demo',
            area: ['650px','450px'],
            shade: [0.7, '#000']
        });
</script>

</body>
</html>